package Class05;

public class BattlePlaneAndChicken {
    public static void main(String[] args) {
        boolean plane = true;
        boolean battleplane = plane;
        boolean battleCheck = !plane;
        System.out.println("“战斗机”和“战斗鸡”都是飞机：" + ((battleplane == plane) & (battleCheck == plane)));
        System.out.println("“战斗机”是飞机或“战斗鸡”是飞机：" + ((battleplane == plane) | (battleCheck == plane)));
        System.out.println("“战斗机”不是飞机抑或“战斗鸡”不是飞机：" + ((battleplane == !plane) ^ (battleCheck == !plane)));
    }
}
